package com.cloudspace.yunloan.update;

import com.cloudspace.yunloan.config.Configs;
import com.cloudspace.yunloan.network.JsonCallBack;
import com.cloudspace.yunloan.network.api.BaseAPI;
import com.cloudspace.yunloan.utils.AppPreferences;
import com.lzy.okhttputils.OkHttpUtils;

/**
 * Created by xianh on 17/3/8.
 */

public class UpdateApi extends BaseAPI{
    public void getUpdateInfo(Object tag, JsonCallBack<UpdateInfoResult> cb){
        OkHttpUtils.get("http://17isafe.com/msurvey/v1.0/person/setting/update")
                .tag(tag)
                .execute(cb);

    }


    @Override
    protected String getBaseApiUrl() {
        return String.format("http://%s/youpei/%s/myself/updateapp",
                Configs.SERVER_IP,Configs.API_VERSION);
    }
}
